home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 11298 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.3 KB

  1. Path: keats.ugrad.cs.ubc.ca!not-for-mail
  2. From: c2a192@ugrad.cs.ubc.ca (Kazimir Kylheku)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: How to make it BEEP ?
  5. Date: 22 Mar 1996 15:13:34 -0800
  6. Organization: Computer Science, University of B.C., Vancouver, B.C., Canada
  7. Message-ID: <4ivc6uINNkub@keats.ugrad.cs.ubc.ca>
  8. References: <4inmv1$ljj@sunburst.ccs.yorku.ca> <4is9tf$8o3@spanky.pls.ov.com> <4isdrcINNsq6@mayne.ugrad.cs.ubc.ca> <Pine.SOL.3.91.960322122122.4343B-100000@mercury>
  9. NNTP-Posting-Host: keats.ugrad.cs.ubc.ca
  10.  
  11. In article <Pine.SOL.3.91.960322122122.4343B-100000@mercury>,
  12. Choy Kah Wai   <93202816@mercury.np.ac.sg> wrote:
  13.  >> No need to make that ascii specific. The C standard gives you a symbolic code
  14.  >> for the alert character.
  15.  >> 
  16.  >>     putchar('\a');
  17.  >> -- 
  18.  >> 
  19.  >> 
  20.  >> 
  21.  >   Or, just simply do:
  22.  >            putch(7);
  23.  >   (Borland compilers..)............................^_^
  24.  
  25. You obviously did not hear what I said. I said there was way of doing it that
  26. is portable to even environments that don't use ASCII! And here you are ranting
  27. some B.S. about some Borland compiler and a function that isn't even part of
  28. standard C!
  29.  
  30. The '\a' character has the value 7 in ascii, but may have a different value in
  31. some other character set.
  32.  
  33.  >    The Chaotic C.H.A.O.S.
  34.  
  35. Indeed...
  36.  
  37. -- 
  38.  
  39.